<!--%import("js/menu_admin.js")-->
<!--%import("../../common/css/popup.css")-->

<div id="popHeader">
    <h3 class="xeAdmin">{$lang->cmd_search_mid}</h3>
</div>

<div id="popBody">
    <form action="./" method="get">
    <input type="hidden" name="module" value="{$module}" />
    <input type="hidden" name="act" value="{$act}" />

    <select name="module_category_srl" class="w5">
        <option value="">{$lang->module_category}</option>
        <!--@foreach($module_category as $key => $val)-->
        <option value="{$key}" <!--@if($module_category_srl==$key)-->selected="selected"<!--@end-->>{$val->title}</option>
        <!--@end-->
    </select>
    <select name="target_module" class="w5">
        <option value="">{$lang->module}</option>
        <!--@foreach($module_list as $key => $val)-->
        <option value="{$val->module}" <!--@if($target_module ==$val->module)-->selected="selected"<!--@end-->>{$val->module}</option>
        <!--@end-->
    </select>
    <input type="submit" name="go_button" id="go_button" value="GO" class="buttonTypeGo" />
    <table cellspacing="0" class="rowTable topGap">
    <thead>
      <tr>
          <th scope="row"><div>{$lang->module_category}</div></th>
          <th scope="row"><div>{$lang->module}</div></th>
          <th scope="row" class="wide"><div>{$lang->mid}</div></th>
          <th scope="row"><div>{$lang->cmd_select}</div></th>
      </tr>
    </thead>
    <tbody>
    <!--@foreach($mid_list as $key => $val)-->
    <tr>
        <td class="nowrap center">
            <!--@if(!$val->module_category_srl)-->
                {$lang->not_exists}
            <!--@else-->
                {$module_category[$val->module_category_srl]->title}
            <!--@end-->
        </td>
        <td class="center nowrap">{$val->module}</td>
        <td>{$val->browser_title} ({$key})</td>
        <td class="modify center"><a href="#" onclick="doInsertMid('{$key}','{$menu_id}'); return false;">{$lang->cmd_select}</a></td>
    </tr>
    <!--@end-->
    </tbody>
    </table>

    </form>
</div>
